<!DOCTYPE html>
<html>

    <head>
           {% block head %}
        <title>{% block title %}{% endblock %} - 国服CBT</title>
 <link href="https://magicbox.bkclouds.cc/static_api/v3/assets/bootstrap-3.3.4/css/bootstrap.min.css" rel="stylesheet">

    <!--蓝鲸提供的公用样式库 -->
    <link href="https://magicbox.bkclouds.cc/static_api/v3/bk/css/bk.css?v=1.0.1" rel="stylesheet">
    <link href="https://magicbox.bkclouds.cc/static_api/v3/bk/css/bk_pack.css" rel="stylesheet">
    <!-- 如果要使用Bootstrap的js插件，必须先调入jQuery -->
    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/js/jquery-1.10.2.min.js"></script>

    <link href="https://magicbox.bkclouds.cc/static_api/v3/assets/daterangepicker-2.0.5/daterangepicker.css" rel="stylesheet">



    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/daterangepicker-2.0.5/moment.min.js"></script>
    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/daterangepicker-2.0.5/daterangepicker.js"></script>


    <script src="{{  url_for('static',filename='main/js/layer.js') }}"></script>

    <link href="{{  url_for('static',filename='main/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{  url_for('static',filename='main/css/rtable.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{  url_for('static',filename='main/css/font-awesome.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{  url_for('static',filename='main/css/ionicons.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{  url_for('static',filename='main/css/AdminLTE.css') }}" rel="stylesheet" type="text/css" />

            {% endblock %}
    </head>


    <body class="skin-black">
        <!-- header logo: style can be found in header.less -->
        <header class="header">

            <a href="{{ url_for('main.index')  }}" class="logo">
                国服CBT服务器操作
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span>{{ current_user.username }} <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <img src="{{ url_for('static',filename='main/img/images.jpeg') }}" class="img-circle" alt="User Image" />
                                    <p>
                                        {{ current_user.username }}
                                        <small>Member since Nov. 2012</small>
                                    </p>
                                </li>

                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Profile</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="{{ url_for('auth.logout') }}" class="btn btn-default btn-flat">Sign out</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src="{{ url_for('static',filename='main/img/images.jpeg') }}" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>Hello, {{ current_user.username }}</p>
                        </div>
                    </div>

                    <ul class="sidebar-menu">
                        <li class="active">
                            <a href="{{ url_for('main.index') }}">
                                <i class="fa fa-dashboard"></i> <span>服务器时间设置</span>
                            </a>
                        </li>
                    <!--      <li>
                            <a href="{{ url_for('main.import_data') }}">
                                <i class="fa fa-dashboard"></i> <span>数据导入导出</span>
                            </a>
                        </li> -->
                         <li >
                            <a href="{{ url_for('main.clean_cache') }}">
                                <i class="fa fa-dashboard"></i> <span>缓存清理(游戏+CBT后台)</span>
                            </a>
                        </li>
                   <!--       <li >
                            <a href="{{ url_for('main.hot_resorce') }}">
                                <i class="fa fa-dashboard"></i> <span>热更新</span>
                            </a>
                        </li> -->
                            <li >
                            <a href="{{ url_for('main.update_cbtcode') }}">
                                <i class="fa fa-dashboard"></i> <span>CBT代码更新</span>
                            </a>
                            </li>
                            <li >
                            <a href="{{ url_for('main.addallowuid') }}">
                                <i class="fa fa-dashboard"></i> <span>白名单UID添加</span>
                            </a>
                        </li>
                          <li >
                            <a href="{{ url_for('main.registerswitch') }}">
                                <i class="fa fa-dashboard"></i> <span>注册功能开关</span>
                            </a>
                        </li>
                         <li>
                              <a href="tencent://message/?uin=2399447849$Site=&amp;Menu=yes">
                                     <i class="fa fa-headphones"></i>  <span style="font-size: small">联系管理员
                                         <a href="tencent://message/?uin=2399447849$Site=&amp;Menu=yes" title="">
                                         <img border="0" src="http://wpa.qq.com/pa?p=2:471166308:51">
                                     </a>
                                     </span>
                              </a>
                     </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

        {% block content %}{% endblock %}

        </div><!-- ./wrapper -->


        <!-- monent.js-->
        <!-- jQuery 2.0.2 -->
        <script src="{{ url_for('static',filename='main/js/jquery.min.js') }}"></script>
        <!-- jQuery UI 1.10.3 -->
        <script src="{{ url_for('static',filename='main/js/jquery-ui-1.10.3.min.js') }}" type="text/javascript"></script>
        <!-- Bootstrap -->
        <script src="{{ url_for('static',filename='main/js/bootstrap.min.js') }}" type="text/javascript"></script>
        <!-- Morris.js charts -->
        <script src="{{ url_for('static',filename='main/js/raphael-min.js') }}"></script>

        <script src="{{ url_for('static',filename='main/js/plugins/sparkline/jquery.sparkline.min.js') }}" type="text/javascript"></script>
        <!-- jvectormap -->
        <script src="{{ url_for('static',filename='main/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js') }}" type="text/javascript"></script>
        <script src="{{ url_for('static',filename='main/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js') }}" type="text/javascript"></script>
        <!-- fullCalendar -->
        <script src="{{ url_for('static',filename='main/js/plugins/fullcalendar/fullcalendar.min.js') }}" type="text/javascript"></script>
        <!-- jQuery Knob Chart -->
        <script src="{{ url_for('static',filename='main/js/plugins/jqueryKnob/jquery.knob.js') }}" type="text/javascript"></script>
        <!-- daterangepicker -->
        <script src="{{ url_for('static',filename='main/js/plugins/daterangepicker/daterangepicker.js') }}" type="text/javascript"></script>
        <!-- Bootstrap WYSIHTML5 -->
        <script src="{{ url_for('static',filename='main/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js') }}" type="text/javascript"></script>
        <!-- iCheck -->
        <script src="{{ url_for('static',filename='main/js/plugins/iCheck/icheck.min.js') }}" type="text/javascript"></script>
        <script src="{{ url_for('static',filename='main/js/AdminLTE/app.js') }}" type="text/javascript"></script>
        <!-- AdminLTE dashboard demo (This is only for demo purposes) -->

        <footer>
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                    <!-- Copyright info -->
                    <center>
                    <p class="copy">Copyright &copy; 2017 | <a href="http://blog.sctux.com" target="_blank">DevOps</a> </p>
                    </center>
              </div>
            </div>
          </div>
        </footer>
    </body>
</html>
